package cn.sheep.dolphin.utils

import org.apache.commons.lang.StringUtils

/** 字符串(数字)的格式化操作
  * author: old sheep
  * QQ: 64341393 
  * Created 2018/11/28
  */
object NBFormat {


	def apply(str: String) = {
		try {
			if (StringUtils.isNotEmpty(str)) {
				str.trim.toInt
			} else 0
		} catch {
			case _: Exception => 0
		}
	}


}
